﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Banesco.Logica
{
    public class HelperCustomerService
    {
        public static Banesco.Entidades.PersonalCustMessage ConvertirPersonalCustMessage(CustomerService.PersonalCustMessage personalCustMessage, ref Banesco.Entidades.PersonalCustMessage personalCustMessageReturn)
        {
            personalCustMessageReturn.user = personalCustMessage.user;
            personalCustMessageReturn.idNumber = personalCustMessage.idNumber;
            personalCustMessageReturn.clientType = personalCustMessage.clientType;
            personalCustMessageReturn.idCountry = personalCustMessage.idCountry;
            personalCustMessageReturn.idType = personalCustMessage.idType;
            personalCustMessageReturn.customerNumber = personalCustMessage.customerNumber;
            personalCustMessageReturn.firstName = personalCustMessage.firstName;
            personalCustMessageReturn.secondName = personalCustMessage.secondName;
            personalCustMessageReturn.firstLastName = personalCustMessage.firstLastName;
            personalCustMessageReturn.secondLastName = personalCustMessage.secondLastName;
            personalCustMessageReturn.marriedName = personalCustMessage.marriedName;
            personalCustMessageReturn.legalName = personalCustMessage.legalName;
            personalCustMessageReturn.shortName = personalCustMessage.shortName;
            personalCustMessageReturn.dependents = personalCustMessage.dependents;
            personalCustMessageReturn.sex = personalCustMessage.sex;
            personalCustMessageReturn.legalStatus = personalCustMessage.legalStatus;
            personalCustMessageReturn.nacionality = personalCustMessage.nacionality;
            personalCustMessageReturn.street = personalCustMessage.street;
            personalCustMessageReturn.houseNumber = personalCustMessage.houseNumber;
            personalCustMessageReturn.province = personalCustMessage.province;
            personalCustMessageReturn.distrit = personalCustMessage.distrit;
            personalCustMessageReturn.correg = personalCustMessage.correg;
            personalCustMessageReturn.country = personalCustMessage.country;
            personalCustMessageReturn.poBox = personalCustMessage.poBox;
            personalCustMessageReturn.zipCode = personalCustMessage.zipCode;
            personalCustMessageReturn.email = personalCustMessage.email;
            personalCustMessageReturn.birthDate = personalCustMessage.birthDate;
            personalCustMessageReturn.firstContactDate = personalCustMessage.firstContactDate;
            personalCustMessageReturn.housePhoneNum = personalCustMessage.housePhoneNum;
            personalCustMessageReturn.officePhoneNum = personalCustMessage.officePhoneNum;
            personalCustMessageReturn.celularPhoneNum = personalCustMessage.celularPhoneNum;
            personalCustMessageReturn.faxNumber = personalCustMessage.faxNumber;
            personalCustMessageReturn.mainOfficer = personalCustMessage.mainOfficer;
            personalCustMessageReturn.secondOfficer = personalCustMessage.secondOfficer;
            personalCustMessageReturn.industryCode = personalCustMessage.industryCode;
            personalCustMessageReturn.businessCode = personalCustMessage.businessCode;
            personalCustMessageReturn.residencyCountry = personalCustMessage.residencyCountry;
            personalCustMessageReturn.relationType = personalCustMessage.relationType;
            personalCustMessageReturn.educationLevel = personalCustMessage.educationLevel;
            personalCustMessageReturn.profession = personalCustMessage.profession;
            personalCustMessageReturn.incomeSource = personalCustMessage.incomeSource;
            personalCustMessageReturn.riskLevel = personalCustMessage.riskLevel;
            personalCustMessageReturn.clientStatus = personalCustMessage.clientStatus;
            personalCustMessageReturn.clientClass = personalCustMessage.clientClass;
            personalCustMessageReturn.groupNumber = personalCustMessage.groupNumber;
            personalCustMessageReturn.language = personalCustMessage.language;
            personalCustMessageReturn.taxes = personalCustMessage.taxes;
            personalCustMessageReturn.referBy = personalCustMessage.referBy;
            personalCustMessageReturn.referByN = personalCustMessage.referByN;
            personalCustMessageReturn.familiarRelationType = personalCustMessage.familiarRelationType;
            personalCustMessageReturn.resident = personalCustMessage.resident;
            personalCustMessageReturn.inquiryLevel = personalCustMessage.inquiryLevel;
            personalCustMessageReturn.discountCompanyCode = personalCustMessage.discountCompanyCode;
            personalCustMessageReturn.position = personalCustMessage.position;
            personalCustMessageReturn.employmentTime = personalCustMessage.employmentTime;
            personalCustMessageReturn.companyType = personalCustMessage.companyType;
            personalCustMessageReturn.currentJEntryDate = personalCustMessage.currentJEntryDate;
            personalCustMessageReturn.previusJEntryDate = personalCustMessage.previusJEntryDate;
            personalCustMessageReturn.currentIncome = personalCustMessage.currentIncome;
            personalCustMessageReturn.perRefName1 = personalCustMessage.perRefName1;
            personalCustMessageReturn.perRefStreet1 = personalCustMessage.perRefStreet1;
            personalCustMessageReturn.perRefBuildNum1 = personalCustMessage.perRefBuildNum1;
            personalCustMessageReturn.perRefHouseNum1 = personalCustMessage.perRefHouseNum1;
            personalCustMessageReturn.perRefProvince1 = personalCustMessage.perRefProvince1;
            personalCustMessageReturn.perRefDistrit1 = personalCustMessage.perRefDistrit1;
            personalCustMessageReturn.perRefCorreg1 = personalCustMessage.perRefCorreg1;
            personalCustMessageReturn.perRefCountry1 = personalCustMessage.perRefCountry1;
            personalCustMessageReturn.perRefPoBox1 = personalCustMessage.perRefPoBox1;
            personalCustMessageReturn.perRefZipCode1 = personalCustMessage.perRefZipCode1;
            personalCustMessageReturn.perRefPhoneNum1 = personalCustMessage.perRefPhoneNum1;
            personalCustMessageReturn.perRefName2 = personalCustMessage.perRefName2;
            personalCustMessageReturn.perRefStreet2 = personalCustMessage.perRefStreet2;
            personalCustMessageReturn.perRefBuildNum2 = personalCustMessage.perRefBuildNum2;
            personalCustMessageReturn.perRefHouseNum2 = personalCustMessage.perRefHouseNum2;
            personalCustMessageReturn.perRefProvince2 = personalCustMessage.perRefProvince2;
            personalCustMessageReturn.perRefDistrit2 = personalCustMessage.perRefDistrit2;
            personalCustMessageReturn.perRefCorreg2 = personalCustMessage.perRefCorreg2;
            personalCustMessageReturn.perRefCountry2 = personalCustMessage.perRefCountry2;
            personalCustMessageReturn.perRefPoBox2 = personalCustMessage.perRefPoBox2;
            personalCustMessageReturn.perRefZipCode2 = personalCustMessage.perRefZipCode2;
            personalCustMessageReturn.perRefPhoneNum2 = personalCustMessage.perRefPhoneNum2;
            personalCustMessageReturn.countryDesc = personalCustMessage.countryDesc;
            personalCustMessageReturn.idTypeDesc = personalCustMessage.idTypeDesc;
            personalCustMessageReturn.ProvinceDesc = personalCustMessage.ProvinceDesc;
            personalCustMessageReturn.NacionalityDesc = personalCustMessage.NacionalityDesc;
            personalCustMessageReturn.distritDesc = personalCustMessage.distritDesc;
            personalCustMessageReturn.corregDesc = personalCustMessage.corregDesc;
            personalCustMessageReturn.mainOfficerDesc = personalCustMessage.mainOfficerDesc;
            personalCustMessageReturn.secondOfficerDesc = personalCustMessage.secondOfficerDesc;
            personalCustMessageReturn.industryCodeDesc = personalCustMessage.industryCodeDesc;
            personalCustMessageReturn.bussinesCodeDesc = personalCustMessage.bussinesCodeDesc;
            personalCustMessageReturn.residencyCountryDesc = personalCustMessage.residencyCountryDesc;
            personalCustMessageReturn.educationLevelDsc = personalCustMessage.educationLevelDsc;
            personalCustMessageReturn.professionDesc = personalCustMessage.professionDesc;
            personalCustMessageReturn.incomeSourceDsc = personalCustMessage.incomeSourceDsc;
            personalCustMessageReturn.riskLevelDsc = personalCustMessage.riskLevelDsc;
            personalCustMessageReturn.discountCompanyCodeDsc = personalCustMessage.discountCompanyCodeDsc;
            personalCustMessageReturn.positionDsc = personalCustMessage.positionDsc;
            personalCustMessageReturn.perRefProvince1Dsc = personalCustMessage.perRefProvince1Dsc;
            personalCustMessageReturn.perRefDistrit1Dsc = personalCustMessage.perRefDistrit1Dsc;
            personalCustMessageReturn.perRefCorreg1Dsc = personalCustMessage.perRefCorreg1Dsc;
            personalCustMessageReturn.perRefProvince2Dsc = personalCustMessage.perRefProvince2Dsc;
            personalCustMessageReturn.perRefDistrit2Dsc = personalCustMessage.perRefDistrit2Dsc;
            personalCustMessageReturn.perRefCorreg2Dsc = personalCustMessage.perRefCorreg2Dsc;
            personalCustMessageReturn.referByDsc = personalCustMessage.referByDsc;
            personalCustMessageReturn.companyName = personalCustMessage.companyName;
            personalCustMessageReturn.companyAddress = personalCustMessage.companyAddress;
            personalCustMessageReturn.companyInfo = personalCustMessage.companyInfo;

            return personalCustMessageReturn;
        }

        public static CustomerService.PersonalCustMessage ConvertirPersonalCustMessage(Banesco.Entidades.PersonalCustMessage personalCustMessage, ref CustomerService.PersonalCustMessage personalCustMessageReturn)
        {
            personalCustMessageReturn.user = personalCustMessage.user;
            personalCustMessageReturn.idNumber = personalCustMessage.idNumber;
            personalCustMessageReturn.clientType = personalCustMessage.clientType;
            personalCustMessageReturn.idCountry = personalCustMessage.idCountry;
            personalCustMessageReturn.idType = personalCustMessage.idType;
            personalCustMessageReturn.customerNumber = personalCustMessage.customerNumber;
            personalCustMessageReturn.firstName = personalCustMessage.firstName;
            personalCustMessageReturn.secondName = personalCustMessage.secondName;
            personalCustMessageReturn.firstLastName = personalCustMessage.firstLastName;
            personalCustMessageReturn.secondLastName = personalCustMessage.secondLastName;
            personalCustMessageReturn.marriedName = personalCustMessage.marriedName;
            personalCustMessageReturn.legalName = personalCustMessage.legalName;
            personalCustMessageReturn.shortName = personalCustMessage.shortName;
            personalCustMessageReturn.dependents = personalCustMessage.dependents;
            personalCustMessageReturn.sex = personalCustMessage.sex;
            personalCustMessageReturn.legalStatus = personalCustMessage.legalStatus;
            personalCustMessageReturn.nacionality = personalCustMessage.nacionality;
            personalCustMessageReturn.street = personalCustMessage.street;
            personalCustMessageReturn.houseNumber = personalCustMessage.houseNumber;
            personalCustMessageReturn.province = personalCustMessage.province;
            personalCustMessageReturn.distrit = personalCustMessage.distrit;
            personalCustMessageReturn.correg = personalCustMessage.correg;
            personalCustMessageReturn.country = personalCustMessage.country;
            personalCustMessageReturn.poBox = personalCustMessage.poBox;
            personalCustMessageReturn.zipCode = personalCustMessage.zipCode;
            personalCustMessageReturn.email = personalCustMessage.email;
            personalCustMessageReturn.birthDate = personalCustMessage.birthDate;
            personalCustMessageReturn.firstContactDate = personalCustMessage.firstContactDate;
            personalCustMessageReturn.housePhoneNum = personalCustMessage.housePhoneNum;
            personalCustMessageReturn.officePhoneNum = personalCustMessage.officePhoneNum;
            personalCustMessageReturn.celularPhoneNum = personalCustMessage.celularPhoneNum;
            personalCustMessageReturn.faxNumber = personalCustMessage.faxNumber;
            personalCustMessageReturn.mainOfficer = personalCustMessage.mainOfficer;
            personalCustMessageReturn.secondOfficer = personalCustMessage.secondOfficer;
            personalCustMessageReturn.industryCode = personalCustMessage.industryCode;
            personalCustMessageReturn.businessCode = personalCustMessage.businessCode;
            personalCustMessageReturn.residencyCountry = personalCustMessage.residencyCountry;
            personalCustMessageReturn.relationType = personalCustMessage.relationType;
            personalCustMessageReturn.educationLevel = personalCustMessage.educationLevel;
            personalCustMessageReturn.profession = personalCustMessage.profession;
            personalCustMessageReturn.incomeSource = personalCustMessage.incomeSource;
            personalCustMessageReturn.riskLevel = personalCustMessage.riskLevel;
            personalCustMessageReturn.clientStatus = personalCustMessage.clientStatus;
            personalCustMessageReturn.clientClass = personalCustMessage.clientClass;
            personalCustMessageReturn.groupNumber = personalCustMessage.groupNumber;
            personalCustMessageReturn.language = personalCustMessage.language;
            personalCustMessageReturn.taxes = personalCustMessage.taxes;
            personalCustMessageReturn.referBy = personalCustMessage.referBy;
            personalCustMessageReturn.referByN = personalCustMessage.referByN;
            personalCustMessageReturn.familiarRelationType = personalCustMessage.familiarRelationType;
            personalCustMessageReturn.resident = personalCustMessage.resident;
            personalCustMessageReturn.inquiryLevel = personalCustMessage.inquiryLevel;
            personalCustMessageReturn.discountCompanyCode = personalCustMessage.discountCompanyCode;
            personalCustMessageReturn.position = personalCustMessage.position;
            personalCustMessageReturn.employmentTime = personalCustMessage.employmentTime;
            personalCustMessageReturn.companyType = personalCustMessage.companyType;
            personalCustMessageReturn.currentJEntryDate = personalCustMessage.currentJEntryDate;
            personalCustMessageReturn.previusJEntryDate = personalCustMessage.previusJEntryDate;
            personalCustMessageReturn.currentIncome = personalCustMessage.currentIncome;
            personalCustMessageReturn.perRefName1 = personalCustMessage.perRefName1;
            personalCustMessageReturn.perRefStreet1 = personalCustMessage.perRefStreet1;
            personalCustMessageReturn.perRefBuildNum1 = personalCustMessage.perRefBuildNum1;
            personalCustMessageReturn.perRefHouseNum1 = personalCustMessage.perRefHouseNum1;
            personalCustMessageReturn.perRefProvince1 = personalCustMessage.perRefProvince1;
            personalCustMessageReturn.perRefDistrit1 = personalCustMessage.perRefDistrit1;
            personalCustMessageReturn.perRefCorreg1 = personalCustMessage.perRefCorreg1;
            personalCustMessageReturn.perRefCountry1 = personalCustMessage.perRefCountry1;
            personalCustMessageReturn.perRefPoBox1 = personalCustMessage.perRefPoBox1;
            personalCustMessageReturn.perRefZipCode1 = personalCustMessage.perRefZipCode1;
            personalCustMessageReturn.perRefPhoneNum1 = personalCustMessage.perRefPhoneNum1;
            personalCustMessageReturn.perRefName2 = personalCustMessage.perRefName2;
            personalCustMessageReturn.perRefStreet2 = personalCustMessage.perRefStreet2;
            personalCustMessageReturn.perRefBuildNum2 = personalCustMessage.perRefBuildNum2;
            personalCustMessageReturn.perRefHouseNum2 = personalCustMessage.perRefHouseNum2;
            personalCustMessageReturn.perRefProvince2 = personalCustMessage.perRefProvince2;
            personalCustMessageReturn.perRefDistrit2 = personalCustMessage.perRefDistrit2;
            personalCustMessageReturn.perRefCorreg2 = personalCustMessage.perRefCorreg2;
            personalCustMessageReturn.perRefCountry2 = personalCustMessage.perRefCountry2;
            personalCustMessageReturn.perRefPoBox2 = personalCustMessage.perRefPoBox2;
            personalCustMessageReturn.perRefZipCode2 = personalCustMessage.perRefZipCode2;
            personalCustMessageReturn.perRefPhoneNum2 = personalCustMessage.perRefPhoneNum2;
            personalCustMessageReturn.countryDesc = personalCustMessage.countryDesc;
            personalCustMessageReturn.idTypeDesc = personalCustMessage.idTypeDesc;
            personalCustMessageReturn.ProvinceDesc = personalCustMessage.ProvinceDesc;
            personalCustMessageReturn.NacionalityDesc = personalCustMessage.NacionalityDesc;
            personalCustMessageReturn.distritDesc = personalCustMessage.distritDesc;
            personalCustMessageReturn.corregDesc = personalCustMessage.corregDesc;
            personalCustMessageReturn.mainOfficerDesc = personalCustMessage.mainOfficerDesc;
            personalCustMessageReturn.secondOfficerDesc = personalCustMessage.secondOfficerDesc;
            personalCustMessageReturn.industryCodeDesc = personalCustMessage.industryCodeDesc;
            personalCustMessageReturn.bussinesCodeDesc = personalCustMessage.bussinesCodeDesc;
            personalCustMessageReturn.residencyCountryDesc = personalCustMessage.residencyCountryDesc;
            personalCustMessageReturn.educationLevelDsc = personalCustMessage.educationLevelDsc;
            personalCustMessageReturn.professionDesc = personalCustMessage.professionDesc;
            personalCustMessageReturn.incomeSourceDsc = personalCustMessage.incomeSourceDsc;
            personalCustMessageReturn.riskLevelDsc = personalCustMessage.riskLevelDsc;
            personalCustMessageReturn.discountCompanyCodeDsc = personalCustMessage.discountCompanyCodeDsc;
            personalCustMessageReturn.positionDsc = personalCustMessage.positionDsc;
            personalCustMessageReturn.perRefProvince1Dsc = personalCustMessage.perRefProvince1Dsc;
            personalCustMessageReturn.perRefDistrit1Dsc = personalCustMessage.perRefDistrit1Dsc;
            personalCustMessageReturn.perRefCorreg1Dsc = personalCustMessage.perRefCorreg1Dsc;
            personalCustMessageReturn.perRefProvince2Dsc = personalCustMessage.perRefProvince2Dsc;
            personalCustMessageReturn.perRefDistrit2Dsc = personalCustMessage.perRefDistrit2Dsc;
            personalCustMessageReturn.perRefCorreg2Dsc = personalCustMessage.perRefCorreg2Dsc;
            personalCustMessageReturn.referByDsc = personalCustMessage.referByDsc;
            personalCustMessageReturn.companyName = personalCustMessage.companyName;
            personalCustMessageReturn.companyAddress = personalCustMessage.companyAddress;
            personalCustMessageReturn.companyInfo = personalCustMessage.companyInfo;

            return personalCustMessageReturn;
        }
    }
}
